﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RepositoryEntity
{
    /// <summary>
    /// 部门实体
    /// </summary>
    public class DepartmentInfo : BaseEntity
    {
        ///// <summary>
        ///// 主键
        ///// </summary>
        //[Key]
        //[Column(TypeName = "varchar(36)")]
        //public string ID { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [Column(TypeName = "varchar(16)")]
        [Required]
        public string DepartmentName { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Column(TypeName = "varchar(32)")]
        public string Description { get; set; }

        /// <summary>
        /// 领导ID
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string LeaderID { get; set; }

        /// <summary>
        /// 父级部门ID
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string ParentID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }

    }
}
